package com.cosmos.codegen.base.db;

import com.cosmos.codegen.base.domain.DBType;

public class DBStaticFactory {

	public static DB getDB(String dbType) {
		if(DBType.MYSQL.getValue().equals(dbType)) {
			return new MySQLDB();
		} else if(DBType.ORACLE.getValue().equals(dbType)) {
			return new ORACLEDB();
		}
		return null;
	}
}
